NGIAB End-to-End Setup Guide
Overview
This guide provides step-by-step instructions for setting up and running the complete NGIAB workflow, including data preprocessor, model execution, TEEHR evaluation and Tethys visualization.
info
For a slightly more in-depth tutorial, please see the NGIAB 101 module.
Prerequisites
- Python 3.x
- Git
- Docker
- Terminal access
- Astral UV
Video Tutorial
Quick Start Guide (5 minutes)
You can watch our step-by-step video guide here:
(System: Using Mac M4 Max Laptop)
Step 1: Data Preprocessing
Run Data Preprocess tool
# Execute preprocess for sample catchment
uvx --from ngiab_data_preprocess cli -i gage-10154200 -sfr --start 2017-09-01 --end 2018-09-01 --source aorc
Parameters Explained
Parameter | Description |
---|---|
-i gage-10154200 | Specifies the gage ID |
--subset | Creates a subset of the data |
--start | Start date for the analysis |
--end | End date for the analysis |
--forcings | Includes forcing data |
--realization | Generates realization data |
Step 2: NGIAB Setup and Execution
Clone and Run NGIAB
# Return to home directory
cd ..
# Clone NGIAB repository
git clone https://github.com/CIROH-UA/NGIAB-CloudInfra.git
# Navigate to NGIAB directory
cd NGIAB-CloudInfra
# Execute the setup and run script
./guide.sh
Automated Process
The guide.sh
script automatically:
- Sets up the NGIAB environment
- Launches the NextGen model
- Initializes and run TEEHR evaluation
- Starts the Tethys visualization interface
Accessing the Tools
After successful execution, you can access:
- NGIAB Visualizer:
http://localhost/apps/ngiab
Troubleshooting
Common issues and solutions:
-
Docker Issues
- Ensure Docker is running
- Verify Docker configuration
- Check Docker permissions
-
Virtual Environment
- Confirm that the virtual environment was activated
- Check Python version compatibility
-
Installation Problems
- Verify that prerequisites and system requirements are met
- Review error logs for further information
- If using WSL: ensure that the repository was pulled using LF line endings
Additional Resources
Documentation
- NGIAB 101 Training Module
- NGIAB Data Preprocessor
- NGIAB Cloud Infrastructure
- TEEHR Documentation
- Tethys Documentation
Support
For technical support:
- Create an issue in the respective GitHub repository
- Contact CIROH support team
- Join community discussions on CIROH Slack